<h1>Edit Content</h1>
<br/>
<b>Category:</b> <%= @page.categoryName %> 
<hr/>
<h2>Add Large Image</h2>

	<% for image in @page.bigimages %>
		<div id="largeimage">
				<%= image_tag image.public_filename %>
				<p>
					<%= link_to 'Edit', :controller => 'bigimages', :action => 'edit', :id => image.id %> | 
					<%= link_to 'Delete', :controller => 'bigimages', :action => 'destroy', :id => image.id %>
				</p>
		</div>
	<% end %>


<br/>

<% form_for([@page, @bigimage], :html => { :multipart => true }) do |f| -%>
					 
 <p>
    <label for="Image">Upload Image:</label>
    <%= f.file_field :uploaded_data %>
	</p>
	
  <p>
    <%= submit_tag 'Create' %>
  </p>
					  
<% end -%>

<br/>
